package com.hectopascal.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hectopascal.enums.UserRoleTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Schema(description = "用户实体类")
@TableName("user")
@Data
public class User {
    @Schema(description = "id")
    private Integer id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "用户密码")
    private String password;

    @Schema(description = "用户角色")
    private UserRoleTypeEnum role;

    @Schema(description = "部门id")
    private Integer departmentId;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "创建时间")
    private Date createdAt;

    @Schema(description = "更新时间")
    private Date updatedAt;
}
